import request from '@/utils/request'

// 查询管道主态列表
export function listPipe(query) {
  return request({
    url: '/system/pipe/list',
    method: 'get',
    params: query
  })
}

// 查询管道主态详细
export function getPipe(pipeId) {
  return request({
    url: '/system/pipe/' + pipeId,
    method: 'get'
  })
}

// 新增管道主态
export function addPipe(data) {
  return request({
    url: '/system/pipe',
    method: 'post',
    data: data
  })
}

// 修改管道主态
export function updatePipe(data) {
  return request({
    url: '/system/pipe',
    method: 'put',
    data: data
  })
}

// 删除管道主态
export function delPipe(pipeId) {
  return request({
    url: '/system/pipe/' + pipeId,
    method: 'delete'
  })
}
